package com.dkh.recommend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dkh.recommend.entity.TbBlog;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author DENG
* @description 针对表【tb_blog】的数据库操作Mapper
* @createDate 2023-04-05 01:22:41
* @Entity generator.entity.TbBlog
*/
@Repository
public interface TbBlogMapper extends BaseMapper<TbBlog> {
//        根据blogId进行浏览量+1
    public Boolean addPageView(Long blog_id);

//    根据音乐Id获得音乐故事List(浏览量倒序排序)
    public List<TbBlog> GetByMusicId(Long music_id);

    List<TbBlog> GetByblogAuthorId(Long blog_author);
}




